﻿using System.Collections.Generic;
using System.Threading.Tasks;

namespace 数据库主从同步测试.Models {
    public interface INewsService {
        Task<int> CreateAsync(CreateNews news);
        Task<bool> DeleteByIdAsync(int id);
        News GetById(int id);
        Task<IEnumerable<News>> GetNewsAsync();
    }
}